package com.zsc.roadsys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zsc.roadsys.entity.Role;
import com.zsc.roadsys.mapper.RoleMapper;
import com.zsc.roadsys.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author haoran
 */

@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

    @Autowired
    RoleMapper roleMapper;

    @Override
    public Role getRoleById(Long roleId){
        return roleMapper.selectById(roleId);
    }
}
